function tijiao() {
    var formData = new FormData();
    formData.append('filename', $('#imporExcelFile')[0].files[0]);
    $.ajax({
        url:"/caicai/batchImport",
        type:"POST",
        data:formData,
        processData:false,
        contentType:false,
        success:function(data){
            alert(data);
            window.location.href="work.html";
        },
        error:function(e){
            alert("错误！！");
        }
    });
}

$(document).ready(function(){
    $.ajax({
        url:"/get",
        type:"POST",
        //data:formData,
        //processData:false,
        //contentType:false,
        success:function(data){
            if(data.success==='true'){
                $("#head").html(data.head);
                $("#open").html(data.open);
            }else{
                alert("获取题目错误或者还未出题");
            }
        },
        error:function(e){
            alert("错误！！");
        }
    });
});
